package com.oner365.test.tree.uias;

import java.sql.Timestamp;

/**
 * TGroup entity. @author MyEclipse Persistence Tools
 */

public class TGroup implements java.io.Serializable {
  /**
   * 
   */
  private static final long serialVersionUID = 1L;
  private Long id;
  private String name;
  private Long parentId;
  private String descr;
  private Timestamp creatTime;
  private Timestamp updateTime;
  private Integer status = 1;
  private String groupCode;

  private String guid;
  private String gpath; // 用户组全路径

  private String orgId; // UIAS机构编号
  private String orgType; // UIAS机构类型 H-总行 B-分行 S-支行

  // 【EMM国际版 Google Android Enterprise solution】
  private Integer isSyncGoogleEnterprise = 0; // 是否需要同步到Google Play Enterprise; 0-否； 1-是； Default 0
  private String googlePlayEnterpriseId; // Google Play Enterprise Id

  /** default constructor */
  public TGroup() {
  }

  /** minimal constructor */
  public TGroup(String name, Integer canLoginSelf, Integer canRegistDevice, Integer canEliminateDevice,
      Integer allowActivateNum, Integer status) {
    this.name = name;
    this.status = status;
  }

  // Property accessors

  public String getGooglePlayEnterpriseId() {
    return googlePlayEnterpriseId;
  }

  public void setGooglePlayEnterpriseId(String googlePlayEnterpriseId) {
    this.googlePlayEnterpriseId = googlePlayEnterpriseId;
  }

  public Long getId() {
    return this.id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getGuid() {
    return this.guid;
  }

  public void setGuid(String guid) {
    this.guid = guid;
  }

  public String getGpath() {
    return gpath;
  }

  public void setGpath(String gpath) {
    this.gpath = gpath;
  }

  public String getName() {
    return this.name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Long getParentId() {
    return this.parentId;
  }

  public void setParentId(Long parentId) {
    this.parentId = parentId;
  }

  public Integer getStatus() {
    return this.status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public String getDescr() {
    return this.descr;
  }

  public void setDescr(String descr) {
    this.descr = descr;
  }

  public Timestamp getCreatTime() {
    return this.creatTime;
  }

  public void setCreatTime(Timestamp creatTime) {
    this.creatTime = creatTime;
  }

  public Timestamp getUpdateTime() {
    return this.updateTime;
  }

  public void setUpdateTime(Timestamp updateTime) {
    this.updateTime = updateTime;
  }

  private Integer useDefaultPolicy = 1; // 策略表示 0-用户自定义 1-继承继承默认配置 /策略

  public Integer getUseDefaultPolicy() {
    return useDefaultPolicy;
  }

  public void setUseDefaultPolicy(Integer useDefaultPolicy) {
    this.useDefaultPolicy = useDefaultPolicy;
  }

  private Integer type = 0;

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public String getGroupCode() {
    return groupCode;
  }

  public void setGroupCode(String groupCode) {
    this.groupCode = groupCode;
  }

  public Integer getIsSyncGoogleEnterprise() {
    return isSyncGoogleEnterprise;
  }

  public void setIsSyncGoogleEnterprise(Integer isSyncGoogleEnterprise) {
    this.isSyncGoogleEnterprise = isSyncGoogleEnterprise;
  }

  public String getOrgId() {
    return orgId;
  }

  public void setOrgId(String orgId) {
    this.orgId = orgId;
  }

  public String getOrgType() {
    return orgType;
  }

  public void setOrgType(String orgType) {
    this.orgType = orgType;
  }
}